home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib9
/
v_11_01
/
1101092a
< prev
next >
Wrap
Text File
|
1995-11-01
|
300b
|
22 lines
#include "isam.h"
int orphan (char *rec);
static Isam i ("invoice");
void main(void)
{
Isam l ("lineitem");
i.reindex (rel_func NULL);
l.reindex (orphan);
}
int orphan (char *rec)
{
char inv_num[10];
strnncpy(inv_num, rec + 7, 9);
return (i.read(inv_num)) ? 0 : 1;
}